package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;


public interface UserService {

    /**
     * 用户登录
     * @param stuId
     * @param password
     * @return
     */
    ServerResponse login(String stuId,String password);

    /**
     * 个人信息修改
     * @param user
     * @return
     */
    ServerResponse updateInfo(User user,String loginToken);

    /**
     * 修改密码
     * @param oldPwd
     * @param newPwd
     * @return
     */
    ServerResponse updatePassword(String stuId,String oldPwd,String newPwd);

    ServerResponse resetPwd(String email,String password);


    ServerResponse checkEmail(String email);

//    ServerResponse getUserInfo(String stuIdToken,String loginToken);

    ServerResponse userIsLogin(String loginToken);

    ServerResponse loginOut(String stuIdToken);

    ServerResponse register(String stuId,String password,String email);
}
